﻿using ClipperBaseUI.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Clipper.BLL;
using Clipper.Model.DataBaseModel;
using Communication;
using Clipper.Model.Interface;
using Global;

namespace Clipper.ClipperWindow
{
    /// <summary>
    /// WinDetermineSampleLocation.xaml 的交互逻辑
    /// </summary>
    public partial class WinDetermineSampleLocation : BaseWindow
    {
        public RunClickEventClass runClick;  //点击按钮进行操作

        public WinDetermineSampleLocation()
        {
            InitializeComponent();
        }

        //开始稀释样本
        private void button_Click(object sender, RoutedEventArgs e)
        {         
            this.Hide();
            ServiceProvider.shortCalibraList.Clear(); //清空暂存定标结果8个
            ServiceProvider.calibrationList.Clear();  // 定标结果4个
            //移动臂进行操作开始
            ServiceProvider.ISCheckSave = true;
            ArmMoveControl.MoveDistribution();
            this.runClick.SimulateClickRun();//启动按钮进行操作
        }


        public void instanceMain(RunClickEventClass runModel)
        {
            this.runClick = runModel;
        }

    }
}
